import {request} from "../http";

export interface Query {
    id?: Number
    typeId?: number
    name?:string | null
    price?: number
    lable?: string | null
    pageNum: 1
    pageSize: 10
}

export interface PackageVo {
    id?: Number
    typeId?: number
    typeName?: string
    name?:string | null
    price?: number
    label?: string[] | null
    file: file[]
    service: string | null
    goods: null
    trip: null
    description: null
}

export interface file {
    fileType: string
    clientUrl: string
}

export const getPackageList = (data:Query) => {
    return request({
        url: "/package/wx",
        method: "POST",
        data: data,
        token: false
    })
}

export const getPackageDe = (id: string) => {
    return request({
        url: `/package/wx/${id}`,
        method: "GET",
        token: false
    })
}

